#include "oslib_plus_wave.h"
#include <string.h>

#ifdef OSLIB_UART_MODULE_ENABLED
static char s[22] = {'b', 'y', 16, 6};
void OSLIB_PLUS_Uart_Send_Wave(float arg1, float arg2, float arg3, float arg4) {
    s[20] = '\r';
    s[21] = '\n';
    memcpy(s + 4, &arg1, sizeof(arg1));
    memcpy(s + 8, &arg2, sizeof(arg1));
    memcpy(s + 12, &arg3, sizeof(arg1));
    memcpy(s + 16, &arg4, sizeof(arg1));
    OSLIB_Uart_SendData(&huart_major, (uint8_t *)s, sizeof(s));
}
#endif